package App.Utility;

/**
 * Created by xw on 2019/7/18.
 */

import App.Model.Project.ProjectFileFolder;

import java.util.Comparator;


public class FolderComparator implements Comparator<ProjectFileFolder> {

    public int compare(ProjectFileFolder one, ProjectFileFolder two) {
        int i = 0;



        if (one.getFoldertype()==0) {

              return  1001;

        }else if (one.getFoldertype()==1){
              return  1002;
        }
        else {
            if (one.getFoldertype() == 4&&one.getIsclientfolder()) {
                  return  1003;
            }else {

                return  two.getFoldertype();
            }
        }
    }

}
